<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>卖家-修改个人信息</title>
<link href="<?php echo $this->_webroot('/user/css/common.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_webroot('/user/css/content1.css'); ?>" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->_webroot('/user/js/jquery-1.7.1.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo $this->_webroot('/user/js/common.js'); ?>" type="text/javascript"></script>
<script type='text/javascript' src='<?php echo $this->_webroot('servtools/date/WdatePicker.js'); ?>'></script>
</head>
<body>
<psp:tags     htmlname='user_topnav1'  iconname='usertopnav1' />
<psp:tags     htmlname='user_topsearch'  iconname='usertopsearch' />

<div class="main">
	<div class="main-left">
    	<div class="title">会员管理中心</div>
        <psp:tags     htmlname='user_menulist'  iconname='usermenulist' />
    </div>
    
    <div class="main-right">
    	<div class="tuikuan_title">
        	<span>交易查询</span>
        </div>		
        <div class="tuikuan_search tuikuan_search2">
        	<form action="<?php echo $this->_url('account/detail');?>" method="get">
            	<div class="jy_search_input">
            	<span>我 要 看 ：</span>
				<input class="Wdate" type="text" name="stime" id="start_time" onFocus="WdatePicker({isShowClear:false,readOnly:true})" value="<?php echo $starttime;?>" />~
				<input class="Wdate" type="text" name="etime" id="end_time" onFocus="WdatePicker({isShowClear:false,readOnly:true})" value="<?php echo $endtime;?>" />
                </div>
                <div class="jy_search_input">
            	<span>交易类型：</span>
				<select  name="type" style="border: 1px solid #999999;height: 20px;">
				    <option value="0"  <?php if ($type==0) { ?> selected <?php } ?> >全部</option>				
				    <option value="1" <?php if ($type==1) { ?> selected <?php } ?> >付款</option>
				    <option value="2"  <?php if ($type==2) { ?> selected <?php } ?> >收款</option>					
				</select>
                </div>
				
                <div class="jy_search_input" style="margin-left:50px;">
            		<input class="btn" type="submit" value="查寻" />
                	<!--<input class="btn" type="reset" value="重置" />-->
                </div>
            </form>
        </div>		
        
        <div class="tuikuan_list tuikuan_list2">
        	<table class="tuikuan_list_table tuikuan_list_table2" style="width:45%">
            	<thead>
                	<tr>
                        <th width="90">可用资金</th>
                        <th width="100">保障资金</th>
                    </tr>
                </thead>
                <tbody>
                	<tr class="tk_colorbg1">
                        <td>￥<?php echo $usermoney; ?>元</td>
                        <td>￥<?php echo $userensuremoney; ?>元</td>
                    </tr>
                    
                </tbody>
            </table>
        </div>
        
        <div class="jy_tishi"><span>友情提醒：</span>为了确保您正常使用各项服务，账户余额不足请及时充值！</div>
        
        <div class="jy_chongzhi"><a href="#">我要充值</a><div class="clear"></div></div>
        
        <div class="tuikuan_list">
        	<table class="tuikuan_list_table">
            	<thead>
                	<tr>
                        <th width="110">交易时间</th>
                        <th width="90">交易金额</th>
                        <th width="190">交易种类</th>
                        <th width="245">交易摘要</th>
                    </tr>
                </thead>
                <tbody>
				<?php $k=1; foreach($result as $value) { $k++; ?>
                	<tr class="tk_colorbg<?php if($k%2==0) { echo '1';}else {echo '2';}?>">
                    	<td><?php echo $value['usermoney']['time']; ?></td>
                        <td><?php if($value['usermoney']['type']){echo "<font color='red' size='3'>[+]</font>";}else{echo "<font color='blue' size='3'>[-]</font>";}?><?php echo $value['usermoney']['money']; ?>元</td>
                        <td><?php echo $value['usermoney']['name']; ?></td>
                        <td><?php echo $value['usermoney']['intro']; ?></td>
                    </tr>
				<?php } ?>	

                </tbody>
            </table>
        </div>
        
        <div class="mai_page_box">
        	<!--<a class="tk_export" href="#">导出</a>-->
            <div class="mai_page">
                <span>共<?php  echo $this->params['paging']['usermoney']['count']; ?>条记录</span>
				<a href="<?php  echo Router::ArrayToUrl($this->params['paging']['usermoney']['pageurl'] + array('page'=> '1')) ; ?>">首页</a>
				<?php if ( $this->params['paging']['usermoney']['prevPage'] ) { ?><a href="<?php  echo Router::ArrayToUrl($this->params['paging']['usermoney']['pageurl'] + array('page'=> $this->params['paging']['usermoney']['page'] -1 )) ; ?>">上一页</a><?php } ?>
                <span>当前第<?php  echo $this->params['paging']['usermoney']['page']; ?>页/共<?php  echo $this->params['paging']['usermoney']['pageCount']; ?>页</span>
                <?php if ( $this->params['paging']['usermoney']['nextPage'] ) { ?><a href="<?php  echo Router::ArrayToUrl($this->params['paging']['usermoney']['pageurl'] + array('page'=> $this->params['paging']['usermoney']['page'] +1 )) ; ?>">下一页</a><?php } ?>
                <a href="<?php  echo Router::ArrayToUrl($this->params['paging']['usermoney']['pageurl'] + array('page'=> $this->params['paging']['usermoney']['pageCount'])) ; ?>">尾页</a>
			</div>
            <div class="clear"></div>
        </div>
    </div>
    <div class="clear"></div>
</div>


<div class="footer">
    <psp:tags     htmlname='user_footer_helper'  iconname='userfooterhelper' />

</div>
</body>
</html>